home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 051-075 / disk_058 / asdg-rrd / poster3 < prev    next >
Text File  |  1992-05-06  |  2KB  |  55 lines

  1. Article 1663 of comp.sys.amiga:
  2. Path: mcdsun!noao!hao!ames!lll-lcc!well!perry
  3. From: perry@well.UUCP (Perry S. Kivolowitz)
  4. Newsgroups: comp.sys.amiga
  5. Subject: Reposting Of DeleteRamDisk And More Discussion
  6. Keywords: Correct Length Is 4176
  7. Message-ID: <2468@well.UUCP>
  8. Date: 24 Jan 87 17:07:14 GMT
  9. Lines: 140
  10.  
  11. Apparently DeleteRamDisk did not upload properly. Here's a second try.
  12.  
  13. Let me explain what DeleteRamDisk does though.
  14.  
  15. Sometimes I've found that  the ASDG  Recoverable Ram Disk is just too damn
  16. recoverable. That is, sometimes I wanted to completely wipe it out so that
  17. I could start fresh with a new one.
  18.  
  19. DeleteRamDisk causes the asdg.vdisk.device  to  corrupt some magic cookies
  20. in memory so that *the next time  you reset,  when  you reload the driver*
  21. it will say ``uhmm. no disk here - let's make a new one.''
  22.  
  23. Thus you can continue to use the ram disk after executing DeleteRamDisk up
  24. until the next  crash or reboot. At that time, a completely empty ram disk
  25. will be created.
  26.  
  27. CleanRamDisk  causes  the  asdg.vdisk.device to  immediately go through its
  28. memory cleaning and compaction routines. The driver would have gone through
  29. these routines  itself, just later. If you want the ram disk cleaned immed-
  30. iately, use CleanRamDisk.
  31.  
  32. As an exercise do the following on a ram disk with about 100 k left in it.
  33.  
  34.     (1)    ``run'' Sysmon so you can watch memory.
  35.     (2)    Make a copy of some large program (less then the amount of
  36.         space you have left though).
  37.     (3)    Notice memory disappearing from the free list.
  38.     (4)    Delete the large program copy.
  39.     (5)    Note that the amount of free memory probably stayed the same.
  40.     (6)    Execute CleanRamDisk.
  41.     (7)    Note lots of memory coming back to the free list.
  42.     (8)    Make a copy of the same program again.
  43.     (9)    Memory leaves free list.
  44.     (10)    Delete it again.
  45.     (11)    Free memory probably stayed the same.
  46.     (12)    Do a few ``dir vd0: opt a''s.
  47.     (13)    After a few of these, memory comes back to the free list.
  48.  
  49. This demonstrates a cleaning of the ram disk that was forced in (6) and 
  50. happened by itself in (12).
  51.  
  52. Perry S. Kivolowitz
  53. -----------cut here for uuencoded deleteramdisk--------------
  54.  
  55.